package com.hyperfix.models.user.vos;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.time.LocalDate;

/**
 * @author JiangChunYu
 * 2024/4/7
 */
@Data
public class UserInfoVO {
    @NotBlank(message = "账号不能为空")
    private String username;
    private String name;
    private Integer age;
    @Pattern(message = "性别类型错误", regexp = "^([男|女])$")
    private String sex;
    private LocalDate birthday;
    @Pattern(message = "请输入11位正确的电话号码", regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$")
    private String phone;
    @NotBlank(message = "邮箱是作为找回密码的重要依据，不能删除")
    private String email;
}
